package com.meilai.project.entity.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 张驰
 * @date 2020/6/5 11:23
 */
@Data
@ApiModel(value= "流程视图上层实体")
public class VWFDataEntity implements Serializable {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "状态（0：未提交；1：流程中；2：已通过；3：已删除）")
    private Integer status;
    @ApiModelProperty(value = "当前节点id")
    private String node_id;
    @ApiModelProperty(value = "当前节点显示名称")
    private String node_name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_at;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最新流转时间")
    private LocalDateTime flow_at;
    @ApiModelProperty(value = "最新审批id")
    private Long check_id;
    @ApiModelProperty(value = "流程类型")
    private Long flow_type;
    @ApiModelProperty(value = "流程类型名字")
    private String flow_type_name;
    @ApiModelProperty(value = "表单模板路径")
    private String module_path;
    @ApiModelProperty(value = "数据表名")
    private String data_table;
    @ApiModelProperty(value = "数据表id")
    private Long data_id;
    @ApiModelProperty(value = "发起人id")
    private Long applyer_id;
    @ApiModelProperty(value = "发起人姓名")
    private String applyer_name;
    @ApiModelProperty(value = "发起人组织id")
    private Long applyer_department_id;
    @ApiModelProperty(value = "发起人组织名")
    private String applyer_department_name;
    @ApiModelProperty(value = "默认模板表id")
    private Long form_module_default_id;
    @ApiModelProperty(value = "当前人可审批")
    @TableField(exist = false)
    private Boolean canCheck=false;
}
